const Video = require("Video");

cc.Class({
    extends: cc.Component,

    // use this for initialization
    onLoad: function () {
        this.playVideo();
    },

    playVideo: function () {
        var v = new Video("resources/imgs/begin_poster.png", "resources/videos/begin.mp4", this.loadStarScene);
        cc.director.preloadScene("starScene");
    },

    loadStarScene() {
        cc.find('Canvas/masker').active = true;
        cc.director.loadScene("starScene");
    }
});
